import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Toolkit;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

import org.openqa.jetty.html.Font;




public class compareignorecase {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Calendar cal = Calendar.getInstance();
	    DateFormat dateFormat = new SimpleDateFormat("dd MMMM");
	    String todaysDate=dateFormat.format(cal.getTime());
	    System.out.println(todaysDate);
	    cal.add(Calendar.DATE, -1);
	    String yesterdaysDate=dateFormat.format(cal.getTime());
	    System.out.println("Yesterday's date was "+yesterdaysDate);  
	    cal.add(Calendar.DATE, +8);
	    String Nextweekdate=dateFormat.format(cal.getTime());
	   System.out.println("nextweeks date"  +Nextweekdate);
		if(todaysDate.compareToIgnoreCase(yesterdaysDate)!=0){
			System.out.println("testt passed");
		}
		else
			System.out.println("test failed");
	}
	

}
